package io.geekidea.boot.jab.controller;

import io.geekidea.boot.common.enums.SysLogType;
import io.geekidea.boot.framework.annotation.Log;
import io.geekidea.boot.framework.response.ApiResult;
import io.geekidea.boot.jab.dto.AiDto;
import io.geekidea.boot.jab.dto.QueryParkChannelDto;
import io.geekidea.boot.jab.service.JieAnBoApiService;
import io.geekidea.boot.user.vo.AppUserVo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Tag(name = "捷安波智慧停车api")
@RequestMapping("/h5/jab")
public class JieAnBoApiController {

    @Autowired
    private JieAnBoApiService jieAnBoApiService;

    @PostMapping("/queryParkChannel")
    @Operation(summary = "通用API接口")
    @Log(value = "通用API接口", type = SysLogType.OTHER_QUERY)
    public Object queryParkChannel(@RequestBody QueryParkChannelDto dto) {
        return jieAnBoApiService.queryParkChannel(dto);
    }


    @PostMapping("/ai")
    @Operation(summary = "ai接口")
    @Log(value = "ai", type = SysLogType.OTHER_QUERY)
    public Object ai(@RequestBody AiDto dto) {
        return jieAnBoApiService.ai(dto);
    }
}
